package cn.usian.Cilent;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


@FeignClient("userservice")
public interface UserClient {
    @GetMapping("/user/{id}")
    User findById(@PathVariable Long id);

    @PostMapping("/user/add")
    User add(@RequestBody User user);

    @GetMapping("/user/del")
    void del(@RequestParam("uid") Long uid);
}
